package parion.testservice;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class EvenetReceiveReceiver extends BroadcastReceiver {
	OnEventReceiverdEventListner mListener;
	
	public interface OnEventReceiverdEventListner{
		public void onEventReceived(Intent i);
	}
	
	public void setOnEventReceiverdEventListner(OnEventReceiverdEventListner listener){
		mListener = listener;
	}	
	
	@Override
	public void onReceive(Context context, Intent intent) {
		// TODO Auto-generated method stub
		if(mListener != null){
			mListener.onEventReceived(intent);
		}
		
	}

}
